<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:67:"D:\www\fdc\public/../application/manage\view\setting\user_edit.html";i:1493601642;s:63:"D:\www\fdc\public/../application/manage\view\public\header.html";i:1490355172;s:63:"D:\www\fdc\public/../application/manage\view\public\footer.html";i:1474280020;}*/ ?>
<!doctype html>
<html>
<head>
	<meta charset="utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
	<link href="__CSS__/style.css" rel="stylesheet"/>
	<title>管理中心</title>

</head>

<body>
<div id="J_ajax_loading" class="ajax_loading">加载中...</div>

<div class="subnav">
    <div class="content_menu ib_a blue line_x">
        <?php if(!empty($sub_menu) OR !empty($big_menu)): if(!(empty($big_menu) || (($big_menu instanceof \think\Collection || $big_menu instanceof \think\Paginator ) && $big_menu->isEmpty()))): if(isset($normal)): ?>
        <a class="add fb" href="<?php echo $big_menu['iframe']; ?>"><em><?php echo $big_menu['title']; ?></em></a>
        <?php else: ?>
    	<a class="add fb J_showdialog" href="javascript:void(0);" data-uri="<?php echo $big_menu['iframe']; ?>" data-title="<?php echo $big_menu['title']; ?>" data-id="<?php echo $big_menu['id']; ?>" data-width="<?php echo $big_menu['width']; ?>" data-height="<?php echo $big_menu['height']; ?>"><em><?php echo $big_menu['title']; ?></em></a>
        <?php endif; endif; if(!(empty($sub_menu) || (($sub_menu instanceof \think\Collection || $sub_menu instanceof \think\Paginator ) && $sub_menu->isEmpty()))): if(is_array($sub_menu) || $sub_menu instanceof \think\Collection || $sub_menu instanceof \think\Paginator): $key = 0; $__LIST__ = $sub_menu;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($key % 2 );++$key;if($key != 1): ?><span>|</span><?php endif; ?>
        <a href="<?php echo $val['url']; ?>" class="<?php echo $val['class']; ?>"><em><?php echo $val['name']; ?></em></a>
        <?php endforeach; endif; else: echo "" ;endif; endif; endif; ?>
    </div>
</div>

<!--会员模块配置-->
<div class="pad_lr_10">
	<form id="info_form" action="<?php echo url('Setting/editDo'); ?>" method="post" enctype="multipart/form-data">
	<div class="col_tab">
	<ul class="J_tabs tab_but cu_li">
		<li class="current">会员模块配置</li>
		<li>第三方登录</li>
	</ul>
<div class="J_panes">
	<div class="content_list pad_10">
		<table width="100%" class="table_form">
        <tr>
            <th width="150">开启会员注册 :</th>
            <td>
                <label class="mr10"><input name="data[register]" value="1" type="radio" class="J_change_status" <?php if($info['register'] == 1): ?>checked<?php endif; ?>> 开启 </label>
                <label><input name="data[register]" type="radio" value="0" class="J_change_status" <?php if($info['register'] == 0): ?>checked<?php endif; ?>>关闭</label>
            </td>
        </tr>

		<tr>
			<th>用户添加二手房 :</th>
			<td>
				<label for="second_1">
					<input type="radio" id="second_1" name="data[second]" value="0" <?php if($info['second'] == 0): ?>checked<?php endif; ?>>审核
				</label>
				<label for="second_2">
					<input type="radio" id="second_2" name="data[second]" value="1" <?php if($info['second'] == 1): ?>checked<?php endif; ?>>不审核
				</label>
			</td>
		</tr>
		<tr>
			<th>用户添加出租房 :</th>
			<td>
				<label for="rental_1">
					<input type="radio" id="rental_1" name="data[rental]" value="0" <?php if($info['rental'] == 0): ?>checked<?php endif; ?>>审核
				</label>
				<label for="rental_2">
					<input type="radio" id="rental_2" name="data[rental]" value="1" <?php if($info['rental'] == 1): ?>checked<?php endif; ?>>不审核
				</label>
			</td>
		</tr>
		<tr>
			<th>用户添加文章 :</th>
			<td>
				<label for="article_1">
					<input type="radio" id="article_1" name="data[article]" value="0" <?php if($info['article'] == 0): ?>checked<?php endif; ?>>审核
				</label>
				<label for="article_2">
					<input type="radio" id="article_2" name="data[article]" value="1" <?php if($info['article'] == 1): ?>checked<?php endif; ?>>不审核
				</label>
			</td>
		</tr>
	</table>
	</div>
	<div class="content_list pad_10 hidden">
		<table width="100%" class="table_form">
			<tr>
				<th width="150">qq配置 :</th>
				<td>
					<table>
						<tr>
							<th>APPKEY: </th>
							<td><input type="text" name="data[qq][app_key]" class="input-text" value="<?php echo $info['qq']['app_key']; ?>" size="50"></td>
						</tr>
						<tr>
							<th>APPSECRET:</th>
							<td>
								<input type="text" name="data[qq][app_secret]" class="input-text" value="<?php echo $info['qq']['app_secret']; ?>" size="50">
							</td>
						</tr>
						<tr>
							<th>回调地址：</th>
							<td>http://<?php echo config('url_domain_root'); ?>/user.login/callback/type/qq.html</td>
						</tr>
						<input type="hidden" name="data[qq][callback]" value="http://<?php echo config('url_domain_root'); ?>/user.login/callback/type/qq.html">
					</table>
				</td>
			</tr>
			<tr>
				<th width="150">新浪微博 :</th>
				<td>
					<table>
						<tr>
							<th>APPKEY: </th>
							<td><input type="text" name="data[sina][app_key]" class="input-text" value="<?php echo $info['sina']['app_key']; ?>" size="50"></td>
						</tr>
						<tr>
							<th>APPSECRET:</th>
							<td>
								<input type="text" name="data[sina][app_secret]" class="input-text" value="<?php echo $info['sina']['app_secret']; ?>" size="50">
							</td>
						</tr>
						<tr>
							<th>回调地址：</th>
							<td>
								http://<?php echo config('url_domain_root'); ?>/user.login/callback/type/sina.html
							</td>
						</tr>
						<input type="hidden" name="data[sina][callback]" value="http://<?php echo config('url_domain_root'); ?>/user.login/callback/type/sina.html">

					</table>
				</td>
			</tr>

		</table>
	</div>
</div>
</div>
		<input type="hidden" name="name" value="<?php echo $action_name; ?>">
		<input type="hidden" name="id" value="<?php echo $base['id']; ?>">
		<div class="mt10"><input type="submit" value="提交" id="dosubmit" name="" class="btn btn_submit" style="margin:0 0 10px 100px;"><br /><br /><br /></div>
</form>
</div>
<script src="__PUBLIC__/js/jquery.min.1.7.2.js"></script>
<script src="__JS__/manage.js"></script>
<script src="__JS__/admin.js"></script>
<script>
//初始化弹窗
(function (d) {
    d['okValue'] = '确定';
    d['cancelValue'] = '取消';
    d['title'] = '标题';
})($.dialog.defaults);
</script>
<script src="__PUBLIC__/js/plugins/formvalidator.js"></script>
<?php if(isset($list_table)): ?>
<script src="__PUBLIC__/js/plugins/listTable.js"></script>
<script>
$(function(){
	$('.J_tablelist').listTable();
});
</script>
<?php endif; ?>
<script src="__PUBLIC__/js/plugins/jquery.tools.min.js"></script>
<script>
	$(function(){
		$('ul.J_tabs').tabs('div.J_panes > div');
	});
</script>
</body>
</html>